<script setup lang="ts">
import { useRouter } from 'nuxt/app'
const router = useRouter()

const handeleLoginOut = () => {
    router.push("/")
}

const demo = () => {
    router.push("/admin")
}

</script>
<template>
    <div>
        <UButton class="cursor-pointer" @click="handeleLoginOut">返回登录</UButton>
        <UButton class="cursor-pointer" @click="demo">后台管理</UButton>
    </div>
</template>